Filter hook 'async_upload_{$type}'
in WP Core File wp-admin/async-upload.php at line 162
Description
Filters the returned ID of an uploaded attachment. The dynamic portion of the hook name, `$type`, refers to the attachment type. Possible hook names include: - `async_upload_audio` - `async_upload_file` - `async_upload_image` - `async_upload_video`
Occurrences
Filename |
Line Number |
wp-admin/async-upload.php |
162 |
Parameters
Type |
Name |
Description |
int |
$id |
Uploaded attachment ID. |
PHP Doc
/**
* Filters the returned ID of an uploaded attachment.
*
* The dynamic portion of the hook name, `$type`, refers to the attachment type.
*
* Possible hook names include:
*
* - `async_upload_audio`
* - `async_upload_file`
* - `async_upload_image`
* - `async_upload_video`
*
* @since 2.5.0
*
* @param int $id Uploaded attachment ID.
*/